﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "EmployeeTaxes", Lazy = true)]
    public class EmployeeTax : ITrackable, IHistory<EmployeeTax>
    {
        public EmployeeTax() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [BelongsTo(Column = "ID_Employee")]
        public virtual Employee Employee { get; set; }

        [BelongsTo(Column = "ID_Tax")]
        public virtual Tax Tax { get; set; }



        [BelongsTo(Column = "ID_BelonsTo_EmployeeTax")]
        public virtual EmployeeTax BelongsTo { get; set; }

        [Property]
        public virtual DateTime EffectiveDate { get; set; }

        [Property]
        public virtual DateTime LearnDate { get; set; }

        [Property]
        public virtual State State { get; set; }



        [Property]
        public virtual DateTime InsertDate { get; set; }

        [Property]
        public virtual string InsertBy { get; set; }

        [Property]
        public virtual DateTime? ModifiedDate { get; set; }

        [Property]
        public virtual string ModifiedBy { get; set; }
    }
}
